package com.kuaiyin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kuaiyin.dto.EnvironmentDTO;
import com.kuaiyin.entity.Environment;
import com.kuaiyin.utils.PageResult;
import com.kuaiyin.vo.EnvironmentVO;

import java.util.List;
import java.util.function.Consumer;

/**
 * <p>
 * 全局变量表 服务类
 * </p>
 *
 * @author ng
 * @since 2025-04-27
 */
public interface IEnvironmentService extends IService<Environment> {

    void saveEnvironment(EnvironmentDTO environmentDTO);

    void updateEnvironment(Long id, EnvironmentDTO environmentDTO);

    void  removeById(Long id);

    EnvironmentVO getById(Long id);

    List<EnvironmentVO> getEnvironmentList();

    PageResult<EnvironmentVO> getEnvironmentPage(Integer page, Integer size, Consumer<LambdaQueryWrapper<Environment>> condition);
}
